import {
  get,
  post,
  //postForm,
  del
} from '@/utils/http'
const packageName = `http://124.70.196.178:8080/intelligent_control_webservice_eeds`

/**
 * 轮播图
 */
// 获取全部轮播图
export function getDeviceCarousels(params) {
  return get(`${packageName}/pc/deviceCarousel/getDeviceCarousels`, params)
}
// 获取轮播图列表
export function getDeviceCarouselList(params) {
  return get(`${packageName}/pc/deviceCarousel/getDeviceCarouselList`, params)
}
// 获取轮播图详情
export function getDeviceCarousel(params) {
  return get(`${packageName}/pc/deviceCarousel/getDeviceCarousel`, params)
}
// 删除轮播图
export function delDeviceCarousel(params) {
  return del(`${packageName}/pc/deviceCarousel/delDeviceCarousel`, params)
}
// 保存轮播图
export function saveDeviceCarousel(params) {
  return post(`${packageName}/pc/deviceCarousel/saveDeviceCarousel`, params)
}
// 上架下架轮播图
export function upOrDownDeviceCarousel(params) {
  return post(`${packageName}/pc/deviceCarousel/upOrDownDeviceCarousel`, params)
}

/**
 * 设备图标
 */
// 获取全部设备图标
export function getDeviceIcons(params) {
  return get(`${packageName}/pc/deviceIcon/getDeviceIcons`, params)
}
// 获取设备图标列表
export function getDeviceIconList(params) {
  return get(`${packageName}/pc/deviceIcon/getDeviceIconList`, params)
}
// 获取设备图标详情
export function getDeviceIcon(params) {
  return get(`${packageName}/pc/deviceIcon/getDeviceIcon`, params)
}
// 删除设备图标
export function delDeviceIcon(params) {
  return del(`${packageName}/pc/deviceIcon/delDeviceIcon`, params)
}
// 保存设备图标
export function saveDeviceIcon(params) {
  return post(`${packageName}/pc/deviceIcon/saveDeviceIcon`, params)
}

/**
 * 设备点位指标
 */
// 获取全部设备点位指标
export function getDevicePointIndexs(params) {
  return get(`${packageName}/pc/devicePointIndex/getDevicePointIndexs`, params)
}
// 获取设备点位指标列表
export function getDevicePointIndexList(params) {
  return get(`${packageName}/pc/devicePointIndex/getDevicePointIndexList`, params)
}
// 获取设备点位指标详情
export function getDevicePointIndex(params) {
  return get(`${packageName}/pc/devicePointIndex/getDevicePointIndex`, params)
}
// 删除设备点位指标
export function delDevicePointIndex(params) {
  return del(`${packageName}/pc/devicePointIndex/delDevicePointIndex`, params)
}
// 保存设备点位指标
export function saveDevicePointIndex(params) {
  return post(`${packageName}/pc/devicePointIndex/saveDevicePointIndex`, params)
}

/**
 * 实训装置
 */
// 获取全部实训装置
export function getDeviceInfos(params) {
  return get(`${packageName}/pc/deviceInfo/getDeviceInfos`, params)
}
// 获取实训装置列表
export function getDeviceInfoList(params) {
  return get(`${packageName}/pc/deviceInfo/getDeviceInfoList`, params)
}
// 获取实训装置详情
export function getDeviceInfo(params) {
  return get(`${packageName}/pc/deviceInfo/getDeviceInfo`, params)
}
// 删除实训装置
export function delDeviceInfo(params) {
  return del(`${packageName}/pc/deviceInfo/delDeviceInfo`, params)
}
// 保存实训装置
export function saveDeviceInfo(params) {
  return post(`${packageName}/pc/deviceInfo/saveDeviceInfo`, params)
}
// 绑定能耗设备
export function bindEnergyConsumptionDevice(params) {
  return post(`${packageName}/pc/deviceInfo/bindEnergyConsumptionDevice`, params)
}

/**
 * 监控视频
 */
// 获取监控视频列表
export function getDeviceMonitorList(params) {
  return get(`${packageName}/pc/deviceMonitor/getDeviceMonitorList`, params)
}
// 获取监控视频详情
export function getDeviceMonitor(params) {
  return get(`${packageName}/pc/deviceMonitor/getDeviceMonitor`, params)
}
// 删除监控视频
export function delDeviceMonitor(params) {
  return del(`${packageName}/pc/deviceMonitor/delDeviceMonitor`, params)
}
// 保存监控视频
export function saveDeviceMonitor(params) {
  return post(`${packageName}/pc/deviceMonitor/saveDeviceMonitor`, params)
}
// 获取监控视频-萤石
export function getDeviceMonitorYs(params) {
  return get(`${packageName}/pc/deviceMonitor/getDeviceMonitorYs`, params)
}

/**
 * 控制设备
 */
// 获取控制设备列表
export function getDeviceControlList(params) {
  return get(`${packageName}/pc/deviceControl/getDeviceControlList`, params)
}
// 获取控制设备详情
export function getDeviceControl(params) {
  return get(`${packageName}/pc/deviceControl/getDeviceControl`, params)
}
// 删除控制设备
export function delDeviceControl(params) {
  return del(`${packageName}/pc/deviceControl/delDeviceControl`, params)
}
// 保存控制设备
export function saveDeviceControl(params) {
  return post(`${packageName}/pc/deviceControl/saveDeviceControl`, params)
}

/**
 * 设备演示视频
 */
// 获取设备演示视频列表
export function getDeviceShowVideoList(params) {
  return get(`${packageName}/pc/deviceShowVideo/getDeviceShowVideoList`, params)
}
// 获取设备演示视频详情
export function getDeviceShowVideo(params) {
  return get(`${packageName}/pc/deviceShowVideo/getDeviceShowVideo`, params)
}
// 删除设备演示视频
export function delDeviceShowVideo(params) {
  return del(`${packageName}/pc/deviceShowVideo/delDeviceShowVideo`, params)
}
// 保存设备演示视频
export function saveDeviceShowVideo(params) {
  return post(`${packageName}/pc/deviceShowVideo/saveDeviceShowVideo`, params)
}

/**
 * 设备学习资料
 */
// 获取设备学习资料列表
export function getDeviceLearnMaterialList(params) {
  return get(`${packageName}/pc/deviceLearnMaterial/getDeviceLearnMaterialList`, params)
}
// 获取设备学习资料详情
export function getDeviceLearnMaterial(params) {
  return get(`${packageName}/pc/deviceLearnMaterial/getDeviceLearnMaterial`, params)
}
// 删除设备学习资料
export function delDeviceLearnMaterial(params) {
  return del(`${packageName}/pc/deviceLearnMaterial/delDeviceLearnMaterial`, params)
}
// 保存设备学习资料
export function saveDeviceLearnMaterial(params) {
  return post(`${packageName}/pc/deviceLearnMaterial/saveDeviceLearnMaterial`, params)
}

/**
 * 设备参数
 */
// 获取设备参数列表
export function getDeviceParamList(params) {
  return get(`${packageName}/pc/deviceParam/getDeviceParamList`, params)
}
// 获取设备参数详情
export function getDeviceParam(params) {
  return get(`${packageName}/pc/deviceParam/getDeviceParam`, params)
}
// 删除设备参数
export function delDeviceParam(params) {
  return del(`${packageName}/pc/deviceParam/delDeviceParam`, params)
}
// 保存设备参数
export function saveDeviceParam(params) {
  return post(`${packageName}/pc/deviceParam/saveDeviceParam`, params)
}

/**
 * 设备点位
 */
// 获取全部设备点位列表
export function getDevicePoints(params) {
  return get(`${packageName}/pc/devicePoint/getDevicePoints`, params)
}
// 获取设备点位列表
export function getDevicePointList(params) {
  return get(`${packageName}/pc/devicePoint/getDevicePointList`, params)
}
// 获取设备点位详情
export function getDevicePoint(params) {
  return get(`${packageName}/pc/devicePoint/getDevicePoint`, params)
}
// 删除设备点位
export function delDevicePoint(params) {
  return del(`${packageName}/pc/devicePoint/delDevicePoint`, params)
}
// 保存设备点位
export function saveDevicePoint(params) {
  return post(`${packageName}/pc/devicePoint/saveDevicePoint`, params)
}
// 导入设备点位（考场id）
export function importDevicePoint(params) {
  return post(`${packageName}/pc/devicePoint/importDevicePoint`, params)
}
// 导出设备点位
export function exportDevicePoint(params) {
  return post(`${packageName}/pc/devicePoint/exportDevicePoint`, params)
}
// 保存设备点位RedisKey
export function saveDevicePointRedisKey(params) {
  return post(`${packageName}/pc/devicePoint/saveDevicePointRedisKey`, params)
}

/**
 * 设备数据点位
 */
// 获取全部数据点位位列表
export function getDataPoints(params) {
  return get(`${packageName}/pc/dataPoint/getDataPoints`, params)
}

/**
 * 设备实训
 */
// 获取设备实训列表
export function getDeviceExperimentList(params) {
  return get(`${packageName}/pc/deviceExperiment/getDeviceExperimentList`, params)
}
// 获取设备实训详情
export function getDeviceExperiment(params) {
  return get(`${packageName}/pc/deviceExperiment/getDeviceExperiment`, params)
}
// 删除设备实训
export function delDeviceExperiment(params) {
  return del(`${packageName}/pc/deviceExperiment/delDeviceExperiment`, params)
}
// 保存设备实训
export function saveDeviceExperiment(params) {
  return post(`${packageName}/pc/deviceExperiment/saveDeviceExperiment`, params)
}

/**
 * 设备实训参数
 */
// 获取设备实训参数列表
export function getDeviceExperimentParamList(params) {
  return get(`${packageName}/pc/deviceExperimentParam/getDeviceExperimentParamList`, params)
}
// 获取设备实训参数详情
export function getDeviceExperimentParam(params) {
  return get(`${packageName}/pc/deviceExperimentParam/getDeviceExperimentParam`, params)
}
// 删除设备实训参数
export function delDeviceExperimentParam(params) {
  return del(`${packageName}/pc/deviceExperimentParam/delDeviceExperimentParam`, params)
}
// 保存设备实训参数
export function saveDeviceExperimentParam(params) {
  return post(`${packageName}/pc/deviceExperimentParam/saveDeviceExperimentParam`, params)
}

/**
 * 设备实训点位
 */
// 获取设备实训点位列表
export function getDeviceExperimentPointList(params) {
  return get(`${packageName}/pc/deviceExperimentPoint/getDeviceExperimentPointList`, params)
}
// 获取设备实训点位详情
export function getDeviceExperimentPoint(params) {
  return get(`${packageName}/pc/deviceExperimentPoint/getDeviceExperimentPoint`, params)
}
// 删除设备实训点位
export function delDeviceExperimentPoint(params) {
  return del(`${packageName}/pc/deviceExperimentPoint/delDeviceExperimentPoint`, params)
}
// 保存设备实训点位
export function saveDeviceExperimentPoint(params) {
  return post(`${packageName}/pc/deviceExperimentPoint/saveDeviceExperimentPoint`, params)
}
// 批量添加设备实训点位
export function batchAddDeviceExperimentPoint(params) {
  return post(`${packageName}/pc/deviceExperimentPoint/batchAddDeviceExperimentPoint`, params)
}

/**
 * 设备分类
 */
// 获取全部设备分类
export function getDeviceClasss(params) {
  return get(`${packageName}/pc/deviceClass/getDeviceClasss`, params)
}
// 获取设备分类列表
export function getDeviceClassList(params) {
  return get(`${packageName}/pc/deviceClass/getDeviceClassList`, params)
}
// 获取设备分类详情
export function getDeviceClass(params) {
  return get(`${packageName}/pc/deviceClass/getDeviceClass`, params)
}
// 删除设备分类
export function delDeviceClass(params) {
  return del(`${packageName}/pc/deviceClass/delDeviceClass`, params)
}
// 保存设备分类
export function saveDeviceClass(params) {
  return post(`${packageName}/pc/deviceClass/saveDeviceClass`, params)
}

/**
 * 报警状态
 */
// 获取全部报警状态
export function getDeviceAlarmStatuss(params) {
  return get(`${packageName}/pc/deviceAlarmStatus/getDeviceAlarmStatuss`, params)
}
// 获取报警状态列表
export function getDeviceAlarmStatusList(params) {
  return get(`${packageName}/pc/deviceAlarmStatus/getDeviceAlarmStatusList`, params)
}
// 获取报警状态详情
export function getDeviceAlarmStatus(params) {
  return get(`${packageName}/pc/deviceAlarmStatus/getDeviceAlarmStatus`, params)
}
// 删除报警状态
export function delDeviceAlarmStatus(params) {
  return del(`${packageName}/pc/deviceAlarmStatus/delDeviceAlarmStatus`, params)
}
// 保存报警状态
export function saveDeviceAlarmStatus(params) {
  return post(`${packageName}/pc/deviceAlarmStatus/saveDeviceAlarmStatus`, params)
}

/**
 * 设备备件
 */
// 获取设备备件列表
export function getDeviceSparePartList(params) {
  return get(`${packageName}/pc/deviceSparePart/getDeviceSparePartList`, params)
}
// 获取设备备件详情
export function getDeviceSparePart(params) {
  return get(`${packageName}/pc/deviceSparePart/getDeviceSparePart`, params)
}
// 删除设备备件
export function delDeviceSparePart(params) {
  return del(`${packageName}/pc/deviceSparePart/delDeviceSparePart`, params)
}
// 保存设备备件
export function saveDeviceSparePart(params) {
  return post(`${packageName}/pc/deviceSparePart/saveDeviceSparePart`, params)
}
